<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h2>浅拷贝</h2>
</body>
<script>
    let a=10;
    let b=a;
    b=100;
    console.log(a)
    console.log(b)
    const obj={
        name:'jack',
        age:18
    }

    let obj2=obj;
  
    obj2={
        name:'alice',
        age:22
    }
    obj2.name='张三'
    console.log('obj2:',obj2)
    console.log('obj:',obj)
</script>
</html>